// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  css: ['~/assets/style.css'],
  app: {
    pageTransition: { name: 'page', mode: 'out-in' }

  },
  modules: [
    '@nuxtjs/tailwindcss',
    '@nuxt/content',
    '@pinia/nuxt',
    '@element-plus/nuxt',
    '@nuxt/image',
    'nuxt-easy-lightbox'
  ],
  ssr: false,
  routeRules: {
    "/blog": { prerender: true },
    "/project": { prerender: true }
  },
  nitro: {
    prerender: {
      crawlLinks: true,
      routes: [
        "/blog",
        "/project"
      ]
    },
  },
  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    }
  },
  content: {
    renderer: {
      anchorLinks: { h2: false, h3: false, h4: false }
    },
    build: {
      markdown: {
        toc: {
          depth: 2
        }
      }
    }
  },
  easyLightbox: {
    scrollDisabled: true,
    escDisabled: false,
    moveDisabled: false,
    zIndex: 2000
  }
})